﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo
{
    class Student:Person
    {
       public int Id;
       public string Name;
       public char Sex;
       public int Carid;
       public string Tle;
       public string Major;
       public string Grade;
        public int id { get; set; }
        public string name { get; set; }
        public char sex { get; set; }
        public int carid { get; set; }
        public string tle { get; set; }
        public string major { get; set; }
        public string grade { get; set; }
        public Student(int id,string name, char sex,int carid,string tle):base(id,name,sex,carid,tle)
        {

        }

        public void PrintStu()
        {
            Console.WriteLine("我的学号是{0},我的名字是{1},我的性别是{2},我的省份证{3},我的联系方式{4}", this.Id, this.Name, this.Sex, this.Carid, this.Tle);
        }


    }
}
